//
//  Resize+NSWindow.m
//  iMAL
//
//  Created by Stefano Pigozzi on 2/4/09.
//  Copyright 2009 __MyCompanyName__. All rights reserved.
//

#import "NSWindow+Resize.h"


@implementation NSWindow (Resize)

- (void)resizeWindowOnSpotWithRect:(NSRect)aRect
{
    NSRect r = NSMakeRect([self frame].origin.x - 
						  (aRect.size.width - [self frame].size.width), [self frame].origin.y - 
						  (aRect.size.height - [self frame].size.height), aRect.size.width, aRect.size.height);
    [self setFrame:r display:YES animate:YES];
}

@end
